package com.songleibing.project.pipeline.demo;

import com.songleibing.project.pipeline.impl.BaseHandlerChain;
import com.songleibing.project.pipeline.impl.BaseHandlerContext;

public class DemoChain extends BaseHandlerChain {
    public DemoChain() {
        addHandler(new Handler1());
        addHandler(new Handler2());
        addHandler(new Handler3());
    }

    public static void main(String[] args) throws Exception {
        new DemoChain().handle(new BaseHandlerContext());
    }
}
